import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import axios from 'axios'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

Vue.use(mavonEditor)

Vue.config.productionTip = false
Vue.use(ElementUI);

axios.interceptors.request.use(
  config => {
      config.headers.Authorization = sessionStorage.getItem('token');
      return config
  }
)

axios.defaults.baseURL='http://39.108.110.150:8006/Wings'
Vue.prototype.$axios = axios
new Vue({
  router,
  axios,
  render: h => h(App)
}).$mount('#app')
